package d07_strategy;

import com.itheima.d07_strategy.strategy.BtjPay;

/**
 * 目标：了解策略设计模式
 */
public class Test {

    public static void main(String[] args) {
        //需求：餐馆支持会员支付
        //普通会员：9折
        //高级会员：8折
        //超级会员：5折
        Customer customer = new Customer();

        customer.setPay(new BtjPay());
        customer.payMoney(100);

    }
}
